package com.huilian.iotbox.admin.wap.dao;

import com.huilian.iotbox.data.dto.CommodityGroupDto;
import com.huilian.iotbox.data.po.CommodityGroup;
import com.huilian.iotbox.data.vo.CommodityGroupVo;

import java.util.List;

public interface CommodityGroupDao {
    Integer insert(CommodityGroup commodityGroup);

    List<CommodityGroup> findAllCommodityGroup();


    List<CommodityGroup> findByUserIdAndType(CommodityGroupDto groupDto);

    Integer update(CommodityGroup CommodityGroup);

    Integer deleteById(CommodityGroupDto commodityGroupDto);

    Integer getGroupedProductCount(CommodityGroupDto commodityGroupDto);

    CommodityGroup getOneCommodityGroupByUserId(Integer userId);

    CommodityGroup findOneCommodityGroupByCondition(CommodityGroupDto commodityGroupDto);

    CommodityGroup getOneCommodityGroupByUserIdAndType(CommodityGroupDto groupDto);
}
